package com.veeder.datacollection.rs232.response.handler;

public class RspHandlerFactory {

	public static RspParser getResponseHandler(String funCode) {
		RspParser handler = null;

		switch (funCode) {
		// system active alarm.
		case "i113":
			handler = new RS113RspHandler();
			break;
		// tank inventory.
		case "i201":
			handler = RS201RspHandler.getInstance();
			break;
		// tank chart for tls3XX, tls4XX;
		case "i211":
			handler = new RS211RspHandler();
			break;
		// tank configuration;
		case "i601":
			handler = new RS601RspHandler();
			break;
		// tank label.
		case "i602":
			handler = new RS602RspHandler();
			break;
		// tank chart 20 points.
		case "i606":
			handler = new RS606RspHandler();
			break;
		// tank diameter.
		case "i607":
			handler = new RS608RspHandler();
			break;
		// tank tilt.
		case "i608":
			handler = new RS608RspHandler();
			break;
		// tank capacity for tls3XX, tls4XX;
		case "i60A":
			handler = new RS608RspHandler();
			break;
		// tank coefficient;
		case "i609":
			handler = new RS608RspHandler();
			break;
		// tank probe offset;
		case "i60F":
			handler = new RS608RspHandler();
			break;
		// tank probe float size;
		case "i62F":
			handler = new RS62FRspHandler();
			break;
		case "iA30":
			handler = new RSA30RspHandler();
			break;
		case "iA31"	:
			handler = new RSA31RspHandler();
			break;
		default:
			break;
		}

		return handler;
	}

}
